package com.lemonfish.pojo.entity;


import com.diboot.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author Masics
 */
@Accessors(chain = true)
@Getter
@ToString
@Setter
public class RolePermission extends BaseEntity {
    private static final long serialVersionUID = -88036582822829405L;


    /**
     * 关联字段
     */
    @ApiModelProperty(value = "关联字段", position = 1)
    private Long roleId;

    /**
     * 关联字段
     */
    @ApiModelProperty(value = "关联字段", position = 2)
    private Long permissionId;

    /**
     * 删除标记
     */
    @ApiModelProperty(value = "删除标记", position = 3)
    private Integer isDeleted;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", position = 4)
    private java.util.Date createTime;

    public RolePermission(Long roleId, Long permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }
}
